

<p>
  <b><%= @dish.name %>:</b> <br/> 
  <%= image_tag(image_url_in_server(@dish.image_url), :size => "250x200" ) %><br/>
  
  <a href="#" onclick="show_div('upload_image')">Update Image</a><br/>
	
	<div id="upload_image" style="display: none;">
		<p>
			<label for="dish_image_url">Choose a image to replace this image.</label><br/>
			
				<% form_for(:dish, 
										:url => {:action => 'update_image', :id => @dish}, 
										:html => {:id => @dish, :multipart => true } 
										) do |f| %> 
    		<%= file_field('file', 'image') %> 
    		<%= submit_tag 'Update' %>
 		 	<% end -%>
		</p>	
	</div>
  
  <br/>
  <%= h @dish.description %><br/>
</p>

	

<%= link_to 'Edit', :action => 'edit', :id => @dish %> |
<%= link_to 'Back', :action => 'list' %>

<script type="text/JavaScript">


function show_div(div_id) {
	document.getElementById(div_id).style.display = "";
}
</script>
